<?php

Solar::loadClass('Domain51_Model_Abstract', true);

class Domain51_App_Account_Model extends Domain51_Model_Abstract
{
    public function daysOpened() {
        $currentTime = time();
        $openedTime = strtotime($this->opened_on);
        
        return round(($currentTime - $openedTime) / 60 / 60 / 24, 2);
    }
}

?>